const express = require('express');
const CategoryController = require('../controllers/category.controller');

const router = express.Router();

// 获取分类列表
router.get('/', CategoryController.getCategories);

// 获取单个分类
router.get('/:id_or_slug', CategoryController.getCategory);

module.exports = router; 